﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDotNet;
using LZL;
using LZL.IISManage;
using Microsoft.Web.Administration;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //var control = IISControl.GetControl();
            ////  var data = control.GetAllPoolInfos();
            //// Console.WriteLine(data.ToJson());
            //var d = control.GetAllPoolInfos().data;
            //Console.WriteLine(IISControl.GetControl(true).GetAllPoolInfos().data.ToJson());
            //Console.WriteLine();
            //Console.WriteLine(d.ToJson());
            //var p = d.Random();
            ////var p1 = p.Applications.Random();
            ////Console.WriteLine(p1.ToJson());
            ////var hd = control.RecycleAppPool("test");
            ////Console.WriteLine(hd.ToJson());
            //Console.WriteLine("over");
            Console.WriteLine(IISControl.GetControl(true).GetAllPoolInfos().data.ToJson());
            Console.WriteLine(IISControl.GetControl(false).GetAllPoolInfos().data.ToJson());

            Console.ReadKey();
        }
    }
}
